package com.biz.primus.ms.commodity.trans.keyword;

import com.biz.primus.ms.commodity.dao.po.Keyword;
import com.biz.primus.ms.commodity.dao.ro.KeywordRo;
import com.google.common.base.Function;
import javax.annotation.Nullable;


/**
 * Created by aaa on 2017/6/5.
 */
public class Keyword2KeywordRo implements Function<Keyword, KeywordRo> {
    @Nullable
    @Override
    public KeywordRo apply(@Nullable Keyword input) {
        KeywordRo resp = new KeywordRo();
        resp.setDisplayName(input.getDisplayName());
        resp.setIdx(input.getIdx());
        resp.setId(input.getId());
        resp.setSearchName(input.getSearchName());
        resp.setCreateTimestamp(input.getCreateTimestamp());
        resp.setUpdateTimestamp(input.getUpdateTimestamp());
        resp.setNote(input.getNote());
        resp.setIdentityFlag(input.getIdentityFlag());
        return resp;
    }
}
